-----------------------------------
-- Area: North Gustaberg
--  NPC: Stone Monument
-- Quests: An Explorer's Footsteps
-- @zone 106
-- @pos -199.635 96.106 505.624
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-------------------------------------

require("scripts/zones/North_Gustaberg/TextIDs");

-----------------------------------
-- onTrigger
-----------------------------------

function onTrigger(player,npc)
	player:startEvent(0x0384);
end;

-----------------------------------
-- onTrade
-----------------------------------

function onTrade(player,npc,trade)
	if (trade:getItemCount() == 1 and trade:hasItemQty(571,1)) then
		player:tradeComplete();
		player:addItem(570);
		player:messageSpecial(ITEM_OBTAINED,570);
		player:setVar("anExplorer-CurrentTablet",0x00020);
	end
end;

-----------------------------------
-- onEventUpdate
-----------------------------------

function onEventUpdate(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;

-----------------------------------
-- onEventFinish
-----------------------------------

function onEventFinish(player,csid,option)
--printf("CSID: %u",csid);
--printf("RESULT: %u",option);
end;